import SDK from '@yxim/nim-web-sdk'
const initNIM = function (params) {
    const chatroomLi = SDK.Chatroom.getInstance({
        appKey: "bbd13a1f1aa75a95393240c97bb985c9",
        token:params.token,
        account:params.account,
        chatroomId:params.chatroomId,
        quickReconnect:true,
        debugLevel: "6c3b27895f91",
        chatroomNick:params.chatroomNick,
        chatroomAddresses: params.chatroomAddresses,
        onconnect:params.onconnect,
        onChatroomStatus:params.onChatroomStatus,
        onChatroomKicked:params.onChatroomKicked,
        onChatroomExited:params.onChatroomExited,
        ondisconnect:params.ondisconnect,
        onwillreconnect:params.onwillreconnect,
        onmsgs:params.onmsgs,
        isAnonymous:params.isAnonymous
    })
    return chatroomLi
}
export default initNIM
